<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlertFsUserIdToFeishuCallingCardsInvestmentEmployee extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('feishu_calling_cards_investment_employee', function (Blueprint $table) {
            $table->string("fsUserId", 11)->default("")->comment("飞书user_id");
            $table->json('cityCodes')->nullable()->comment('城市code');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('feishu_calling_cards_investment_employee', function (Blueprint $table) {
            $table->dropColumn('fsUserId');
            $table->dropColumn('cityCodes');
        });
    }
}
